﻿using JTTD.Common.Attribute;
using System;
using System.ComponentModel.DataAnnotations;

namespace JTTD.Domain.Dtos.CompanyBill.Request
{
    /// <summary>
    /// 设置账单dto
    /// </summary>
    public  class SetCompanyBillRequestDto
    {
       
        /// <summary>
        /// 账单类型
        /// </summary>
        [Required(ErrorMessage ="账单类型不能为空")]
        [Excel(Text = "摘要")]
        public string Type { get; set; }


        /// <summary>
        /// 单价
        /// </summary>
        [Excel(Text = "单价")]
        public string UnitPrice { get; set; }

        
        /// <summary>
        /// 日期
        /// </summary>
        [Required(ErrorMessage ="日期不能为空")]
        [Excel(Text ="日期")]
        public string PayDate { get; set; }


        /// <summary>
        /// 租凭面积
        /// </summary>
        [Required(ErrorMessage = "租凭面积不能为空")]
        [Excel(Text = "租赁面积")]
        public string Area { get; set; }

        /// <summary>
        /// 总费用
        /// </summary>
        [Required(ErrorMessage ="总费用不能为空")]
        [Excel(Text = "小计")]
        public string TotalFee { get; set; }


        /// <summary>
        /// 最后付款日
        /// </summary>
        [Required(ErrorMessage = "最后付款日不能为空")]
        [Excel(Text = "最后付款日")]
        public DateTime LastDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(200,ErrorMessage ="备注不能超过100个汉字")]
        [Excel(Text = "备注")]
        public string Remarks { get; set; }

      
    }
}
